# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-wsproto
pkgver=1.1.0
pkgrel=0
pkgdesc="Sans-IO WebSocket protocol implementation"
url="https://github.com/python-hyper/wsproto"
license="MIT"
arch="noarch"
depends="python3 py3-h11"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/python-hyper/wsproto/archive/$pkgver/py3-wsproto-$pkgver.tar.gz"
builddir="$srcdir/wsproto-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
b987e18f437cc69c742d9255d3fa3d88c836bef7aa286d68dc2dd802c3b17a655dfdd329258af23e4ee23b1faabc74604df8f584d249512723d89812815bd16d  py3-wsproto-1.1.0.tar.gz
"
